<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h2>로그인 폼</h2>
	<!-- 만약에 request scope 속성으로 "error_message"가 있다면 그 값을 출력 -->
	<%
		Object errorMessage = request.getAttribute("error_message");
		if(errorMessage!=null){
	%>
			<font size="2" color="red"><%=errorMessage%></font>
	<%	} 
	%>
	<form action="/myservlet/LoginServlet" method="post">
		ID : <input type="text" name="id"><br>
		PW : <input type="password" name="password"><br>
		<input type="submit" value="로그인">
	</form>
</body>
</html>